package com.vhall.component.entity.data.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;
import org.hibernate.validator.constraints.Range;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * admin-统计汇总条件
 *
 * @author guoxin.wang
 * @date 2021/7/29
 */
@Data
public class AdminLiveReqVO implements Serializable {

    private static final long serialVersionUID = 3121855412737414734L;

    /**
     * 此字段不由前端传
     */
    private Integer ilId;

    @ParamName("room_id")
    private String roomId;

    @ParamName("start_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime beginTime;

    @ParamName("end_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @Range(min = 1, max = 3, message = "status 应在1-3之间")
    private Integer status = 1;

}
